home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / crypt < prev    next >
Text File  |  2001-03-21  |  1KB  |  31 lines

  1. Synopsis:
  2.    $crypt(<string> <salt>)
  3.  
  4. Technical:
  5.    Given an arbitrary string and a "salt" (a randomizer), this function
  6.    returns the input string in a one-way encrypted form.  This function
  7.    depends on the availability of a local crypt(3) library function.  Only
  8.    the first 8 characters of the input string are significant.  The salt
  9.    is a two-character string, and may be composed of any combination of
  10.    any alphanumeric character, a period (.), or a forward-slash (/).
  11.    Additional characters may be available, depending on the crypt(3) in
  12.    use at your site.
  13.  
  14. Practical:
  15.    This function is primarily used for encrypting passwords, Unix style.
  16.    It is helpful if the input salt is itself sufficiently random.  Case is
  17.    preserved in both the salt and input string.
  18.  
  19. Returns:
  20.    encrypted input text, or nothing if error
  21.  
  22. Example:
  23.    $crypt(foobar ab)              returns "foobar" encrypted with salt "ab"
  24.  
  25. Other Notes:
  26.    As mentioned above, this function relies completely on the availability
  27.    of a local crypt(3) library function.  This function is not available
  28.    on some systems.  Refer to your system's manual pages for more
  29.    information.
  30.  
  31.